import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)
const routes = [
    {
      path: '/',
      component: ()=>import('@/pages/Home'),
    },
    {
      path: '/city',
      component: ()=>import('@/pages/City')
    },{
      path:'/detail/:id',
      component: ()=>import('@/pages/Detail')
    }
  ];

export default new VueRouter({
    routes
}) 
